//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Resource Application Block
//===============================================================================

using System;
using System.Management.Instrumentation;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Manageability;

namespace EntLibContrib.Resource.Configuration.Manageability
{
	/// <summary>
	/// Represents the configuration information from a 
	/// <see cref="EntLibContrib.Resource.Configuration.XmlResourceProviderData"/> instance.
	/// </summary>
	/// <seealso cref="EntLibContrib.Resource.Configuration.XmlResourceProviderData"/>
	/// <seealso cref="ResourceProviderSetting"/>
	[InstrumentationClass(InstrumentationType.Instance)]
	public class XmlResourceProviderSetting : ResourceProviderSetting
	{
		#region Fields
		private String resourcePathName;
		#endregion

		#region Properties
		/// <summary>
		/// Gets the name of the path for the represented configuration object.
		/// </summary>
		/// <value>The name of the resource path.</value>
		/// <seealso cref="EntLibContrib.Resource.Configuration.XmlResourceProviderData.ResourcePathName">XmlResourceProviderData.ResourcePathName</seealso>
		public String ResourcePathName
		{
			get { return resourcePathName; }
			internal set { resourcePathName = value; }
		}
		#endregion

		#region Construction
		/// <summary>
		/// Initializes a new instance of the <see cref="XmlResourceProviderSetting"/> class.
		/// </summary>
		/// <param name="name">The name.</param>
		/// <param name="resourcePathName">Name of the resource path.</param>
		/// <param name="resourceBaseName">Name of the resource base.</param>
		internal XmlResourceProviderSetting(String name, String resourcePathName, String resourceBaseName)
			: base(name, resourceBaseName)
		{
			this.resourcePathName = resourcePathName;
		}
		#endregion
	}
}
